﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Awaken.Utils.WidgetCode
{
    /// <summary>
    /// 权限类型 Tolower()
    /// </summary>
    public enum RuleType
    {
        /// <summary>
        /// 系统 权限
        /// </summary>
        System = 0x1,

        /// <summary>
        /// 用户(默认)  权限
        /// </summary>
        User = 0x2,

        /// <summary>
        /// 卖家 权限
        /// </summary>
        Saler = 0x3,

        /// <summary>
        /// 公司 公司权限
        /// </summary>
        Admin = 0x4,

    }

    /// <summary>
    /// 安全类别
    /// </summary>
    public enum SecurityType
    {
        Web = 0x1,

        Saler=0x2,

        Admin = 0x3,
    }

    /// <summary>
    /// 授权返回码
    /// </summary>
    public enum AuthCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0,
        /// <summary>
        /// 超时
        /// </summary>
        OverDate = 1,
        /// <summary>
        /// 验证无效
        /// </summary>
        Invalid = 2,
        /// <summary>
        /// 无权限
        /// </summary>
        NoRule = 3,
        /// <summary>
        /// 标示空
        /// </summary>
        TokenNull = 4,
        /// <summary>
        /// 标示错误
        /// </summary>
        TokenWrong = 5,
    }
}
